package com.hejing.Map实现类源码分析;

import org.junit.Test;

import java.util.HashMap;
import java.util.LinkedHashMap;

/**
 * ClassName: MapTest
 * Package: com.hejing.Map实现类源码分析
 * Description:
 *
 * @Author: HeJing
 * @Create: 2023-05-29 20:06
 * @Version: 1.0
 */
public class MapTest {

    /**
     * HashMap源码分析:
     */
    @Test
    public void test01(){
        HashMap<String, Integer> map = new HashMap<>();
        map.put("AA", 123);
    }

    /**
     * LinkedHashMap源码分析
     */
    @Test
    public void test02(){
        LinkedHashMap<String, Integer> map = new LinkedHashMap<>();
        map.put("AA", 123);
    }
}




















